const state = {
  menu: []
}

const mutations = {
  SET_MENU: (state, menu) => {
    state.menu = menu;
  }
}

const actions = {
  setMenu({commit},{menu}){
    commit('SET_MENU',menu);
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
